<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
    <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
    <%@ include file="/WEB-INF/component/commonTagLib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><spring:message code="message.lable.DICyaoLiFenLeiWeiHuJiLuXingQing"/></title>
<%@ include file="/WEB-INF/component/commonCSS.jsp" %> 

<style type="text/css">
          @media(max-width:767px){
            .form-group-xs{
            margin-left:0px !important;
            }
        }
.text-left {color:#848484;}

</style>

</head>
<body class="skin-blue-light sidebar-mini fixed skin-blue-light-frame">
    <section class="content-header">
        <h1><spring:message code="message.lable.DICyaoLiFenLeiWeiHuJiLuXingQing"/></h1>
        <ol class="breadcrumb">
            <li><a href="${ctx}/home.jsp"><i class="fa fa-home"></i><spring:message code="message.lable.first"/></a></li>
            <li class="active"><a href="#"><spring:message code="message.lable.DicManage"/></a></li>
            <li class="active"><a href="#"><spring:message code="message.lable.pharDic"/></a></li>
        </ol>
    </section>
    <section class="content">
    <table class="infoBox">
      <tr>
        <td width="120px" class="infoBoxleft">
        <p style="color:#fff;font-size:20px;text-align:center;font-weight:600"><spring:message code="message.listForm.xiuGaiXiangQing"/></p>
        </td>
        <td>
        	<form id="form" class="form-horizontal"  method="post">
            <input type="hidden" name=orgId value="${acctInfo.orgId}" />
                <div class="box-body" style="background:url('${ctx }/lib/img/infobg.png') no-repeat bottom right;">
                    <div class="form-group form-group-xs"  style="margin-top:5px;">
                      <label class="col-sm-2 text-right"><spring:message code="message.listForm.benCiXiuGaiShiJian"/>：</label>
	                  <div class="col-sm-3 text-left"  >${list.get(0).updDatetime}</div>
	                  <label class="col-sm-2 text-right"><spring:message code="message.listForm.shangCiXiuGaiShiJian"/>：</label>
                      <div class="col-sm-3 text-left">${fn:length(list)>1?list.get(1).updDatetime:''}</div>
                    </div>
                    
                    <div class="form-group form-group-xs" style="margin-top:-10px;margin-bottom:-10px;">
                    <label class="col-sm-2 text-right"><spring:message code="message.listForm.benCiXiuGaiRen"/>：</label>
	                <div class="col-sm-3 text-left">${list.get(0).updUser}</div>
	                <label class="col-sm-2 text-right"><spring:message code="message.listForm.shangCiXiuGaiRen"/>：</label>
	                <div class="col-sm-3 text-left" >${fn:length(list)>1?list.get(1).updUser:''}</div>
                    </div>
                </div>
             </form>
        </td>
      </tr>
      </table>
            
      <div class=" box box-success">
    <form role="form" class="form-horizontal" method="post">
	 <div class="box-body">
             <table class="comparison">
                       <tr>
                         <th></th>
                         <th><spring:message code="message.listForm.xiuGaiHou"/></th>
                         <th><spring:message code="message.listForm.xiuGaiQian"/></th>
                       </tr>
                       <tr class="no1">
                         <td class="title">药理分类名称</td>                         
                         <td>
                          <div ${(fn:length(list)>1?list[1].pharName:'')==(list[0].pharName)?"":"style='color:red;font-weight:900;'" } >
	                            ${list[0].pharName}
	                        </div>
                         </td>
                         <td>
                          <div >
	                            ${fn:length(list)>1?list[1].pharName:''}
	                        </div>
                         </td>
                       </tr>
                       <tr class="no2">
                         <td class="title">药理分类编码</td>
                         <td>
                          <div  ${(fn:length(list)>1?list[1].pharCode:'')==(list[0].pharCode)?"":"style='color:red;font-weight:900;'" } >
	                            ${list[0].pharCode}
	                        </div>
	                     </td>
                         <td>
                          <div >
	                            ${fn:length(list)>1?list[1].pharCode:''}
	                        </div>
                         </td>
                       </tr>
                       <tr class="no1">
                         <td class="title">状态</td>                         
                         <td>
                          <div ${(fn:length(list)>1?list[1].status:-1)==(list[0].status)?"":"style='color:red;font-weight:900;'" } >
	                            ${list[0].status==1?'启用':'停用'}
	                        </div>
                         </td>
                         <td>
                          <div >
	                            ${fn:length(list)>1?(list[1].status==1?'启用':'停用'):''}
	                        </div>
                         </td>
                       </tr>
                       
                    </table>
               </div> 
      </form> 
      <div class="box-footer text-center">
      <a href="javascript:history.go(-1)" class="btn btn-danger btn-sm"><spring:message code="message.button.getBackSpacing"/></a>
      </div>
    </div>      
  </section>

</html>